package org.ilovecode.events 
{
	import flash.events.Event;
	
	/**
	 * ...
	 * @author Vjekoslav Ratkajec
	 */
	public class MenuEvent extends Event 
	{
		
		public static const CLICK:String = "menuClick";
		public static const EXTEND:String = "extend";
		public static const PREVIOUS:String = "previous";
		
		private var _item:String = "";
		
		public function MenuEvent(type:String, item:String, bubbles:Boolean=false, cancelable:Boolean=false) 
		{ 
			super(type, bubbles, cancelable);
			_item = item;
		} 
		
		public override function clone():Event 
		{ 
			return new MenuEvent(type, item, bubbles, cancelable);
		} 
		
		public override function toString():String 
		{ 
			return formatToString("MenuEvent", "type", "item", "bubbles", "cancelable", "eventPhase"); 
		}
		
		public function get item():String {
			return _item;
		}
		
	}
	
}